Logical Object Search Framework and Application Programming Interface

ABSTRACT

A method, computer program product, and system for executing and administering queries in a data management system, and particularly a relational data management system. Logical objects can be queried by providing a translation from a logical query in a pre-defined logical schema to a physical query against the physical data management system, such as by translating a database query constructed using an Object Query Language (OQL) into a query in Structured Query Language (SQL) without the user needing to know the details of the physical data management system such as the structure of the underlying relational databases.

BACKGROUND

1. Technical Field

The present invention relates generally to a logical object searchframework and application programming interface (API), and moreparticularly to using a logical object search framework and API toexecute and administer queries in a data management system.

2. Discussion of Related Art

In today's information-driven economy, the ability of an enterprise toefficiently store, update, and use information can be critical to theenterprise's ability to serve its customers and compete in the economy.An entity such as a business enterprise can model a concept of an entityrelating to that enterprise and use such modeling information tomaintain and use information relating to that entity. Some examples ofentities that can be modeled by an enterprise include customer, product,bill of materials etc. An enterprise can maintain and model datarelating to these entities in either a relational programmingenvironment or in an object-oriented environment such as the commonlyused Java environment. In a relational system, data is maintained in oneor more data tables, where each row refers to an instance of the entity.In an object system, an entity concept is modeled using classes, whereeach instance of the class, called an object, refers to an instance ofthe entity, with characteristics of those objects being known as“attributes” of that object. In order to bridge the two systems,object-relational modeling (ORM) techniques are used to enable anenterprise to use data maintained in relational databases in anobject-oriented environment.

BRIEF SUMMARY

Accordingly, embodiments of the present invention include a method ofprocessing a query, comprising providing a pre-defined logical schema toa user of a database system comprising at least two relational databaseentities storing data therein, receiving a logical query for data storedin the database system from the user, where the logical query is writtenin an object-oriented query language according to the pre-definedlogical schema, and comprises two or more predicates and an operatorspecifying an action to take with one or more of the predicates, inresponse to receiving the logical query, interpreting the logical queryusing the pre-defined logical schema to determine which of therelational database entities is associated with each predicate,requesting each relational database entity to translate each of itsassociated predicates, receiving a translated predicate query for eachpredicate from its associated relational database entity, where eachtranslated predicate query is a written in a relational query languageand is a translation of one of the object-oriented predicates in thelogical query, combining each received translated predicate query into amaster query using the operator, executing the master query against thedatabase system, in response to executing the master query, receiving aquery result set from the database system, and providing the queryresult set to the user.

Other embodiments of the present invention include a computer programproduct comprising a computer useable medium having a computer readableprogram, where the computer readable program when executed on a computercauses the computer to provide a pre-defined logical schema to a user ofa database system comprising at least two relational database entitiesstoring data therein, receive a logical query for data stored in thedatabase system from the user, where the logical query is written in anobject-oriented query language according to the pre-defined logicalschema, and comprises two or more predicates and an operator specifyingan action to take with one or more of the predicates, in response toreceiving the logical query, interpret the logical query using thepre-defined logical schema to determine which of the relational databaseentities is associated with each predicate, request each relationaldatabase entity to translate each of its associated predicates, receivea translated predicate query for each predicate from its associatedrelational database entity, where each translated predicate query is awritten in a relational query language and is a translation of one ofthe object-oriented predicates in the logical query, combine eachreceived translated predicate query into a master query using theoperator, execute the master query against the database system, inresponse to executing the master query, receive a query result set fromthe database system, and provide the query result set to the user.

Still other embodiments of the present invention include a systemcomprising a memory having a pre-defined logical schema stored thereon,a database memory having at least two relational database entitiesstoring data thereon and a processor configured with logic to providethe pre-defined logical schema to a user, receive a logical query forstored data from the user, where the logical query is written in anobject-oriented query language according to the pre-defined logicalschema, and comprises two or more predicates and an operator specifyingan action to take with one or more of the predicates, in response toreceiving the logical query, interpret the logical query using thepre-defined logical schema to determine which of the relational databaseentities is associated with each predicate, request each relationaldatabase entity to translate each of its associated predicates, receivea translated predicate query for each predicate from its associatedrelational database entity, where each translated predicate query is awritten in a relational query language and is a translation of one ofthe object-oriented predicates in the logical query, combine eachreceived translated predicate query into a master query using theoperator, execute the master query against the at least two relationaldatabase entities, in response to executing the master query, receive aquery result set from the at least two relational database entities, andprovide the query result set to the user.

The above and still further features and advantages of embodiments ofthe present invention will become apparent upon consideration of thefollowing detailed description thereof, particularly when taken inconjunction with the accompanying drawings wherein like referencenumerals in the various figures are utilized to designate likecomponents.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

FIG. 1 is a block diagram illustrating an exemplary search framework andAPI used in a Master Data Management (MDM) system environment accordingto an embodiment of the present invention.

FIGS. 2A and 2B are schematic diagrams of an object-oriented searchquery and a relational data table according to an embodiment of thepresent invention.

FIG. 3 is a flowchart depicting a process for executing a search queryin a Master Data Management (MDM) system environment according to anembodiment of the present invention.

DETAILED DESCRIPTION

Referring now to the Figures, an exemplary system according to anembodiment of the present invention is illustrated in FIG. 1. The systemshown in FIG. 1 is particularly suited to the execution andadministration of master data retrieval in a Master Data Management(MDM) system. The system includes a search framework and API 10, memory20, database management system (DBMS) 30, data storage system 40containing data, and authorization system 50, all of which are connectedover networks 72, 74, 76, 78 to each other and to clients 5. The system100 may include additional servers, clients, and other devices notshown, and individual components of the system may occur either singlyor in multiples, for example, there may be more than one data storagearea in the system.

Generally, clients 5 provide an interface to the functions provided bythe search framework and API 10, for example, mechanisms for queryingthe databases, etc. The end-user clients 5 may be implemented by anyquantity of conventional or other computer systems or devices (e.g.,computer terminals, personal computers (e.g., IBM-compatible, AppleMacIntosh, tablet, laptop, etc.), cellular telephone, personal dataassistant (e.g., Palm Pre, Treo, iPhone, etc.), and may include anycommercially available operating system (e.g., AIX, Linux, OSX, SunSolaris, Unix, Windows, etc.) and any commercially available or customsoftware (e.g., browser software, communications software, wordprocessing software, etc.). These systems may include types of displaysand input devices (e.g., keyboard, mouse, voice recognition, etc.) toenter and/or view information.

The search framework and API 10 may be implemented in the form of aprocessing system, or may be in the form of software. A processingsystem may be implemented by any conventional or other computer orprocessing systems preferably equipped with a display or monitor, a base(e.g., including the processor, memories and/or internal or externalcommunications devices (e.g., modem, network cards, etc.) and optionalinput devices (e.g., a keyboard, mouse or other input device)). Ifembodied in software, the search framework and API 10 may be availableon a recordable medium (e.g., magnetic, optical, floppy, DVD, CD, etc.)or in the form of a carrier wave or signal for downloading from a sourcevia a communication medium (e.g., bulletin board, network, LAN, WAN,Intranet, Internet, etc.). For example, the search framework and API 10can be implemented as software, for example one or more daemons,software modules, or APIs.

Memory 20 may be implemented by any conventional or other memory orstorage device (e.g., RAM, cache, flash, etc.), and may include anysuitable storage capacity. Memory 20 may store a pre-defined logicalschema, logical queries, predicate queries, master queries, javafilters, and result sets, as is further described below.

The DBMS 30 may be any suitable database management system, and may be aMaster Data Management system such as IBM InfoSphere Master DataManagement Server, Microsoft SQL Server 2008 R2 Master Data Services, orSun Master Data Management (MDM) Suite, for example. In the depictedembodiment, the DBMS comprises a database server 32, a query parser 34,and a query optimizer 36.

Data storage system 40 may be implemented by any quantity of any type ofconventional or other databases (e.g., network, hierarchical,relational, object, etc.) or storage structures (e.g., files, datastructures, web-based storage, disk or other storage, etc.). Thedatabases or storage structures 42, 44, 46 may store any desiredinformation arranged in any fashion (e.g., tables, hierarchical,relations, objects, etc.), and may store additional information such asmetadata in addition to documents. For example, the databases or storagestructures 42, 44, 46 may be any suitable data storage structure such asan enterprise data source (e.g., DB2, Oracle, IBM Enterprise ContentManagement (ECM) systems, ERP systems, etc.), personal andintra-organization data sources (e.g., spreadsheets (e.g., MicrosoftExcel), databases (e.g., Microsoft Access, MySQL), Sharepoint, Quickr,XML, etc.), or web-based data sources such as public databases (e.g.,tax records, real estate records, court documents, etc.) and the like.Authorization system 50 may be implemented by any suitable authorizationor access control system, and may be a single system or individualsystems associated with one or more data storage structure in the datastorage system 40.

The networks 72, 74, 76, 78 may be implemented by any quantity of anysuitable communications media (e.g., WAN, LAN, Internet, Intranet,wired, wireless, etc.). The computer systems of the present inventionembodiments may include any conventional or other communications devicesto communicate over the networks via any conventional or otherprotocols, and may utilize any type of connection (e.g., wired,wireless, etc.) for access to the network. It is understood that any ofthe client 5, search framework and API 10, memory 20, DBMS 30, datastorage system 40, and authorization system 50 may be local to one ormore components of system 100, or may be remote from and incommunication with one or more other components of system 100 via one ormore networks 72, 74, 76, 78.

In operation, the search framework and API 10 provides a way to querylogical objects by providing a translation from a logical query in apre-defined schema to a physical query against the physical data storagesystem 40. For example, the search framework and API 10 may translate adatabase query constructed using an Object Query Language (OQL) to aquery in Structured Query Language (SQL) without the user needing toknow the details of the physical data storage system 40 such as thestructure of the underlying relational databases. In these embodiments,this translation is provided by means of mapping the relational schemasutilized in the data storage system 40 and DBMS 30 to a singlepre-defined logical schema, for example a product classification withcategory hierarchies.

The pre-defined logical schema may take various forms, for example in aretail MDM system, the master data may be modeled in two or threedimensions, for example, product data, common categorization data, andlocation-specific data. Thus, a set of objects such as Item, Catalog,Spec, Category, Hierarchy and Location may be used to model themerchandise in these dimensions. Item may correspond to a product in aretail store, such as a television, and has a common set of basicattributes, which can be defined in ‘Spec’. For management purposes,items can be grouped using a ‘Catalog’ object, which categorizes theitems based on their general type, for example ‘Books’, ‘Electronics’,‘Garden Supplies’, or ‘Media’. Items in a catalog can be further groupedinto ‘Category’, for example, ‘Audio’, ‘Computers’, ‘Photo’ or‘Televisions’. A category may have sub-categories, and so each categorycan be in a ‘Hierarchy’. Each ‘Category’ has a set of basic attributes,which can be defined in ‘Spec’. The items may also havelocation-specific attributes, and may also be grouped using a ‘Location’object, which has a set of basic attributes, which can be defined in‘Spec’.

In this way, a set of logical objects (e.g., Item, Catalog, Spec, etc.)may be used to model any type of retail business system, or a differentset of logical objects may be used to model any type of business or MDMsystem. The search framework and API 10 itself models the relationshipbetween logical objects, but allows a developer or system administratorto specify the particular retrieval logic in each object. For example,the search framework and API 10 may model the relationship between‘Item’, ‘Category’ and ‘Hierarchy’ asitem.category.hierarchy.name=‘Electronics Classification’, where aperiod is used to link two logical objects. This representationindicates that an item belongs to a category in the hierarchy‘Electronics Classification’.

The use of the pre-defined schema vastly simplifies the user's abilityto run logical or business queries against physical databases of varyingform, for example a single MDM system may integrate databases ofmultiple types from multiple vendors, without requiring the use ofmultiple database schemas to run a query. In the present embodiments theuser need not know the details of the underlying physical databases,which reduces the cost of training and implementation for complex MDMsystems.

For example, as shown in FIG. 2A, a database query 210 requesting aresult set containing all televisions available in the San AntonioMetropolitan area with a price point of $1250 or less is constructedusing an object-oriented query language and the pre-defined logicalschema. The search framework and API 10 translates and facilitatesrunning this search against the underlying relational database table 220depicted in FIG. 2B, which maintains data in one or more data tables,where each row refers to an instance of the entity (e.g., a particularproduct), and each column refers to an attribute of the entity (e.g.,the source vendor, the model number, the price, the available shippingzones for this product, etc.).

Generally, the search framework and API 10 that has been previouslydescribed performs the steps of FIG. 3. Referring now to FIG. 3, thereference numeral 300 generally designates a flow chart depicting aprocess for executing a search query in a Master Data Management (MDM)system. In step 310, the search framework and API 10 receives from theclient a logical query written in an object-oriented query language,according to the pre-defined logical schema. In step 320, the searchframework and API 10 interprets the logical query using the pre-definedlogical schema to determine the physical entities that are the subjectof the query (e.g., a particular database), any predicates specified forthe determined entities, and the conjunctions and groupings (operators)specified between the determined predicates.

In step 330, the search framework and API 10 directs each of the queriedentities to translate the determined predicates specified for it into adatabase-specific query language, such as SQL, and to build a predicatequery that can be directly run against the physical data storage system.The search framework and API 10 also directs each entity to obtainauthorization for the client to access the queried data, whereupon eachMDM entity may communicate with the authorization system to perform thisauthorization check. If the appropriate authorization rule can betranslated into a database-specific query (e.g., a SQL query), then theauthorization query can be appended to the raw predicate query,otherwise the authorization rule can be transmitted as an authorizationfilter (e.g., a java filter) that is executed against the search resultset before it is consumed by the client.

In step 340, the search framework and API 10 receives the individualpredicate queries from each of the queried entities, along with anyappended authorization queries or java filters. In step 350, the searchframework and API 10 combines the individual predicate queries into amaster query by appropriately nesting, grouping, performing union orintersection, or the like on the individual predicate queries. In step360, the search framework and API 10 runs the master query against thephysical data storage system, and in step 370 the search framework andAPI 10 receives a result set from the data storage system. If anyauthorization filters were received by the search framework and API 10,then in step 380 the search framework and API 10 applies these filtersto the result set before, in step 390, sending the filtered result setto the client.

The search framework and API 10 also provides administration of queriesand result sets to the system, for example storing query parameters,queries, and result sets in the memory. For example, the searchframework and API 10 can provide the following API functionality:

SearchManager—a class for handling searches;

Searchable—a seachable interface is implemented by every MDM entity thatneeds to be available for searching;

SearchQuery—the Query object is used to specify a search query. Thisobject accepts the search query as a string and allows the consumer ofthe API to specify some options for running the query;

SearchResult—the SearchResult object encapsulates the ResultSet of aquery;

SearchResultIterator—the SearchResultIterator object allows the consumerof the search API to iterate over the ResultSet of a query in theSearchResult object;

SavedSearchParameter—the SavedSearchParameter object is used to store alist of personalized search parameters;

SavedSearchQuery—the SavedSearchQuery object is used to create aspecific named query and store it in memory; and

SavedSearchResult—the SavedSearchResult object allows the user to savethe actual ResultSet of a particular query, along with any specifiedparameter values, and to specify a name for the set of objects.

As will be appreciated by one skilled in the art, aspects of the presentinvention may be embodied as a system, method or computer programproduct. Accordingly, aspects of the present invention may take the formof an entirely hardware embodiment, an entirely software embodiment(including firmware, resident software, micro-code, etc.) or anembodiment combining software and hardware aspects that may allgenerally be referred to herein as a “circuit,” “module” or “system.”Furthermore, aspects of the present invention may take the form of acomputer program product embodied in one or more computer readablemedium(s) having computer readable program code embodied thereon.

Any combination of one or more computer readable medium(s) may beutilized. The computer readable medium may be a computer readable signalmedium or a computer readable storage medium. A computer readable mediummay be, for example, but is not limited to, an electronic, magnetic,optical, electromagnetic, infrared, or semiconductor system, apparatus,or device, or any suitable combination of the foregoing. More specificexamples (a non-exhaustive list) of the computer readable storage mediumwould include the following: an electrical connection having one or morewires, a portable computer diskette, a hard disk, a random access memory(RAM), a read-only memory (ROM), an erasable programmable read-onlymemory (EPROM or Flash memory), an optical fiber, a portable compactdisc read-only memory (CD-ROM), an optical storage device, a magneticstorage device, or any suitable combination of the foregoing. In thecontext of this document, a computer readable storage medium may be anytangible medium that can contain, or store a program for use by or inconnection with an instruction execution system, apparatus, or device.

A computer readable signal medium may include a propagated data signalwith computer readable program code embodied therein, for example, inbaseband or as part of a carrier wave. Such a propagated signal may takeany of a variety of forms, including, but not limited to,electro-magnetic, optical, or any suitable combination thereof. Acomputer readable signal medium may be any computer readable medium thatis not a computer readable storage medium and that can communicate,propagate, or transport a program for use by or in connection with aninstruction execution system, apparatus, or device. Program codeembodied on a computer readable medium may be transmitted using anyappropriate medium, including but not limited to wireless, wireline,optical fiber cable, RF, etc., or any suitable combination of theforegoing.

Computer program code for carrying out operations for aspects of thepresent invention may be written in any combination of one or moreprogramming languages, including an object oriented programming languagesuch as Java, Smalltalk, C++ or the like and conventional proceduralprogramming languages, such as the “C” programming language or similarprogramming languages. The program code may execute entirely on theuser's computer, partly on the user's computer, as a stand-alonesoftware package, partly on the user's computer and partly on a remotecomputer or entirely on the remote computer or server. In the latterscenario, the remote computer may be connected to the user's computerthrough any type of network, including a local area network (LAN) or awide area network (WAN), or the connection may be made to an externalcomputer (for example, through the Internet using an Internet ServiceProvider).

It is to be understood that the software for the computer systems of thepresent invention embodiments may be implemented in any desired computerlanguage and could be developed by one of ordinary skill in the computerarts based on the functional descriptions contained in the specificationand flow charts illustrated in the drawings. By way of example only, thesoftware may be implemented in the C#, C++, Python, Java, or PHPprogramming languages. Further, any references herein of softwareperforming various functions generally refer to computer systems orprocessors performing those functions under software control.

The computer systems of the present invention embodiments mayalternatively be implemented by any type of hardware and/or otherprocessing circuitry. The various functions of the computer systems maybe distributed in any manner among any quantity of software modules orunits, processing or computer systems and/or circuitry, where thecomputer or processing systems may be disposed locally or remotely ofeach other and communicate via any suitable communications medium (e.g.,LAN, WAN, Intranet, Internet, hardwire, modem connection, wireless,etc.).

Aspects of the present invention are described with reference toflowchart illustrations and/or block diagrams of methods, apparatus(systems) and computer program products according to embodiments of theinvention. It will be understood that each block of the flowchartillustrations and/or block diagrams, and combinations of blocks in theflowchart illustrations and/or block diagrams, can be implemented bycomputer program instructions. These computer program instructions maybe provided to a processor of a general purpose computer, specialpurpose computer, or other programmable data processing apparatus toproduce a machine, such that the instructions, which execute via theprocessor of the computer or other programmable data processingapparatus, create means for implementing the functions/acts specified inthe flowchart and/or block diagram block or blocks.

These computer program instructions may also be stored in a computerreadable medium that can direct a computer, other programmable dataprocessing apparatus, or other devices to function in a particularmanner, such that the instructions stored in the computer readablemedium produce an article of manufacture including instructions whichimplement the function/act specified in the flowchart and/or blockdiagram block or blocks. The computer program instructions may also beloaded onto a computer, other programmable data processing apparatus, orother devices to cause a series of operation steps to be performed onthe computer, other programmable apparatus or other devices to produce acomputer implemented process such that the instructions which execute onthe computer or other programmable apparatus provide processes forimplementing the functions/acts specified in the flowchart and/or blockdiagram block or blocks.

A processing system suitable for storing and/or executing program codemay be implemented by any conventional or other computer or processingsystems preferably equipped with a display or monitor, a base (e.g.,including the processor, memories and/or internal or externalcommunications devices (e.g., modem, network cards, etc.) and optionalinput devices (e.g., a keyboard, mouse or other input device)). Thesystem can include at least one processor coupled directly or indirectlyto memory elements through a system bus. The memory elements can includelocal memory employed during actual execution of the program code, bulkstorage, and cache memories which provide temporary storage of at leastsome program code in order to reduce the number of times code must beretrieved from bulk storage during execution. Input/output or I/Odevices (including but not limited to keyboards, displays, pointingdevices, etc.) can be coupled to the system either directly or throughintervening I/O controllers. Network adapters may also be coupled to thesystem to enable the system to become coupled to other processingsystems or remote printers or storage devices through interveningprivate or public networks. Modems, cable modem and Ethernet cards arejust a few of the currently available types of network adapters.

The flowchart and block diagrams in the Figures illustrate thearchitecture, functionality, and operation of possible implementationsof systems, method and computer program products according to variousembodiments of the present invention. In this regard, each block in theflowchart or block diagrams may represent a module, segment, or portionof code, which comprises one or more executable instructions forimplementing the specified logical function(s). It should also be notedthat, in some alternative implementations, the functions noted in theblock may occur out of the order noted in the Figures. For example, twoblocks shown in succession may, in fact, be executed substantiallyconcurrently, or the blocks may sometime be executed in the reverseorder, depending on the functionality involved. It will also be notedthat each block of the block diagrams and/or flowchart illustration, andcombinations of blocks in the block diagrams and/or flowchartillustration, can be implemented by special purpose hardware-basedsystems that perform the specified functions or acts, or combinations ofspecial purpose hardware and computer instructions.

The terminology used herein is for the purpose of describing particularembodiments only and is not intended to be limiting of the invention. Asused herein, the singular forms “a”, “an” and “the” are intended toinclude the plural forms as well, unless the context clearly indicatesotherwise. It will be further understood that the terms “comprises”and/or “comprising,” when used in this specification, specify thepresence of stated features, integers, steps, operations, elements,and/or components, but do not preclude the presence or addition of oneor more features, integers, steps, operations, elements, components,and/or groups thereof.

The corresponding structures, materials, acts, and equivalents of allmeans or step plus function elements in the claims below are intended toinclude any structure, material, or act for performing the function incombination with other claimed elements as specifically claimed. Thedescription of the present invention has been presented for purposes ofillustration and description, but is not intended to be exhaustive orlimited to the invention in the form disclosed. Many modifications andvariations will be apparent to those of ordinary skill in the artwithout departing from the scope and spirit of the invention. Theembodiment was chosen and described in order to best explain theprinciples of the invention and the practical application, and to enableothers of ordinary skill in the art to understand the invention forvarious embodiments with various modifications as are suited to theparticular use contemplated.

1. A method of processing a query, comprising: providing a pre-definedlogical schema to a user of a database system comprising at least tworelational database entities storing data therein; receiving a logicalquery for data stored in the database system from the user, wherein thelogical query is written in an object-oriented query language accordingto the pre-defined logical schema, and comprises two or more predicatesand an operator specifying an action to take with one or more of thepredicates; in response to receiving the logical query, interpreting thelogical query using the pre-defined logical schema to determine which ofthe relational database entities is associated with each predicate;requesting each relational database entity to translate each of itsassociated predicates; receiving a translated predicate query for eachpredicate from its associated relational database entity, wherein eachtranslated predicate query is a written in a relational query languageand is a translation of one of the object-oriented predicates in thelogical query; combining each received translated predicate query into amaster query using the operator; executing the master query against thedatabase system; in response to executing the master query, receiving aquery result set from the database system; and providing the queryresult set to the user.
 2. The method according to claim 1, wherein atleast one of the steps is implemented on a computer system.
 3. Themethod according to claim 1, further comprising: requesting eachrelational database entity to check for authorization for each of itsassociated predicates; receiving an authorization rule for eachpredicate, wherein the authorization rule specifies forbidden data andis written in the relational query language; wherein said combiningfurther comprises combining the authorization rules with the translatedpredicate queries into the master query; and wherein the received queryresult set does not contain any forbidden data.
 4. The method accordingto claim 1, further comprising: requesting each relational databaseentity to check for authorization for each of its associated predicates;receiving an authorization filter for each predicate, wherein theauthorization rule specifies forbidden data; and applying the receivedauthorization filters to the received query result to remove forbiddendata prior providing the query result set to the user.
 5. The methodaccording to claim 1, further comprising: saving the logical query inthe database system.
 6. The method according to claim 1, furthercomprising: saving the query result set in the database system.
 7. Themethod according to claim 1, wherein the database system is a masterdatabase system.
 8. The method according to claim 1, wherein therelational query language is SQL.
 9. A computer program productcomprising a computer useable medium having a computer readable program,wherein the computer readable program when executed on a computer causesthe computer to: provide a pre-defined logical schema to a user of adatabase system comprising at least two relational database entitiesstoring data therein; receive a logical query for data stored in thedatabase system from the user, wherein the logical query is written inan object-oriented query language according to the pre-defined logicalschema, and comprises two or more predicates and an operator specifyingan action to take with one or more of the predicates; in response toreceiving the logical query, interpret the logical query using thepre-defined logical schema to determine which of the relational databaseentities is associated with each predicate; request each relationaldatabase entity to translate each of its associated predicates; receivea translated predicate query for each predicate from its associatedrelational database entity, wherein each translated predicate query is awritten in a relational query language and is a translation of one ofthe object-oriented predicates in the logical query; combine eachreceived translated predicate query into a master query using theoperator; execute the master query against the database system; inresponse to executing the master query, receive a query result set fromthe database system; and provide the query result set to the user. 10.The computer program product of claim 9, wherein the computer readableprogram when executed on a computer further causes the computer to:request each relational database entity to check for authorization foreach of its associated predicates; receive an authorization rule foreach predicate, wherein the authorization rule specifies forbidden dataand is written in the relational query language; wherein said combiningfurther comprises combining the authorization rules with the translatedpredicate queries into the master query; and wherein the received queryresult set does not contain any forbidden data.
 11. The computer programproduct of claim 9, wherein the computer readable program when executedon a computer further causes the computer to: request each relationaldatabase entity to check for authorization for each of its associatedpredicates; receive an authorization filter for each predicate, whereinthe authorization rule specifies forbidden data; and apply the receivedauthorization filters to the received query result to remove forbiddendata prior providing the query result set to the user.
 12. The computerprogram product of claim 9, wherein the computer readable program whenexecuted on a computer further causes the computer to: save the logicalquery in the database system.
 13. The computer program product of claim9, wherein the computer readable program when executed on a computerfurther causes the computer to: save the query result set in thedatabase system.
 14. The computer program product of claim 9, whereinthe database system is a master database system.
 15. The computerprogram product of claim 9, wherein the relational query language isSQL.
 16. The computer program product of claim 9, wherein the computerprogram product is stored on a computer useable optical storage medium.17. The computer program product of claim 9, wherein the computerprogram product is stored on a hard disk.
 18. A system comprising: amemory having a pre-defined logical schema stored thereon; a databasememory having at least two relational database entities storing datathereon; and a processor configured with logic to: provide thepre-defined logical schema to a user; receive a logical query for storeddata from the user, wherein the logical query is written in anobject-oriented query language according to the pre-defined logicalschema, and comprises two or more predicates and an operator specifyingan action to take with one or more of the predicates; in response toreceiving the logical query, interpret the logical query using thepre-defined logical schema to determine which of the relational databaseentities is associated with each predicate; request each relationaldatabase entity to translate each of its associated predicates; receivea translated predicate query for each predicate from its associatedrelational database entity, wherein each translated predicate query is awritten in a relational query language and is a translation of one ofthe object-oriented predicates in the logical query; combine eachreceived translated predicate query into a master query using theoperator; execute the master query against the at least two relationaldatabase entities; in response to executing the master query, receive aquery result set from the at least two relational database entities; andprovide the query result set to the user.
 19. The system of claim 18,the processor being further configured with the logic to: request eachrelational database entity to check for authorization for each of itsassociated predicates; receive an authorization rule for each predicate,wherein the authorization rule specifies forbidden data and is writtenin the relational query language; wherein said combining furthercomprises combining the authorization rules with the translatedpredicate queries into the master query; and wherein the received queryresult set does not contain any forbidden data.
 20. The system of claim18, the processor being further configured with the logic to: requesteach relational database entity to check for authorization for each ofits associated predicates; receive an authorization filter for eachpredicate, wherein the authorization rule specifies forbidden data; andapply the received authorization filters to the received query result toremove forbidden data prior providing the query result set to the user.21. The system of claim 18, the processor being further configured withthe logic to: save the logical query in the database system.
 22. Thesystem of claim 18, the processor being further configured with thelogic to: save the query result set in the database system.
 23. Thesystem of claim 18, wherein the database system is a master databasesystem.
 24. The system of claim 18, wherein the relational querylanguage is SQL.